package com.njbdqn.qiy_shop.shopservices;

import java.util.List;

import com.njbdqn.qiy_shop.shopdao.CommodityDAO;
import com.njbdqn.qiy_shop.shopentity.Commodity;



public class CommodityService {
	private CommodityDAO cdao;
	public CommodityService(){
		cdao = new CommodityDAO();
	} 
	
	public List<Commodity> findAll(){
		return cdao.findAll();
	}
	
	public Commodity findById(int commodityid){
		return cdao.findById(commodityid);
	}
	
	public List<Commodity> batchShop(Object [] ids){
		return cdao.findBatchShop(ids);
	}
	
	public List<Commodity> findBatchShop(Object [] ids){
		return cdao.findBatchShop(ids);
	}
	
}
